npm run build
# rm -rf dist-deploy
mkdir dist-deploy
git clone --depth 1 --branch pages git@atomgit.com:tobudos/Playground.git dist-deploy/pages
echo "---> clean up current pages branch"
(cd dist-deploy/pages && git checkout . &&  git pull)
echo "---> copy new files"
rm -rf dist-deploy/pages/*
cp -r dist/* dist-deploy/pages/
echo "---> update pages branch"
(cd dist-deploy/pages && git add . && git commit -m "Deploy on $(date +'%Y-%m-%d %H:%M:%S')" && git push -f)
